package com.sxm.yiwei.activitis;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.Toast;

import com.sxm.yiwei.R;

public class HopeStoreActivity extends BaseActivity implements View.OnClickListener {

    private RelativeLayout shopmessage;
    private ImageView shopbanck;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hope_store);
        initHopeStoreView();
    }

    private void initHopeStoreView() {
        shopmessage = (RelativeLayout) findViewById(R.id.hopestore_shopmessage);
        shopbanck = (ImageView) findViewById(R.id.hopestore_shopback);


        shopmessage.setOnClickListener(this);
        shopbanck.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.hopestore_shopmessage:
                startActivity(new Intent(HopeStoreActivity.this,HopestoreMessageActivity.class));
                break;
            case R.id.hopestore_shopback:
                finish();
                break;

        }
    }
}
